package net.edu_soft.ec.asset.mapper;

import java.util.List;
import net.edu_soft.ec.asset.pojo.UsageRecord;
import net.edu_soft.ec.asset.pojo.UsageRecordExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UsageRecordMapper {
    long countByExample(UsageRecordExample example);

    int deleteByExample(UsageRecordExample example);

    int deleteByPrimaryKey(Integer usageRecordId);

    int insert(UsageRecord record);

    int insertSelective(UsageRecord record);

    List<UsageRecord> selectByExample(UsageRecordExample example);

    UsageRecord selectByPrimaryKey(Integer usageRecordId);

    int updateByExampleSelective(@Param("record") UsageRecord record, @Param("example") UsageRecordExample example);

    int updateByExample(@Param("record") UsageRecord record, @Param("example") UsageRecordExample example);

    int updateByPrimaryKeySelective(UsageRecord record);

    int updateByPrimaryKey(UsageRecord record);
}